using System.IO;
using Microsoft.Extensions.Configuration;

namespace Blog.Util
{
    public sealed class WebConfig
    {
        public static IConfiguration Configuration { get; private set;}
        public static void Set(IConfiguration configuration )
        {

            Configuration=configuration;
        }
        public static string GetSection(string Section)
        {
            return Configuration.GetSection(Section).Value;
        }
        public static string GetConnectionString(string Section)
        {
            return Configuration.GetConnectionString(Section);
        }
    }

}